package com.jeecg.demo.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: APP_USER_COLLECTION
 * @author onlineGenerator
 * @date 2019-05-29 15:35:16
 * @version V1.0   
 *
 */
@Entity
@Table(name = "app_user_collection", schema = "")
@SequenceGenerator(name="ID_SEQ",sequenceName="APP_USER_COLLECTION_USER_COLLE",allocationSize=1)
@SuppressWarnings("serial")
public class AppUserCollectionEntity implements java.io.Serializable {
	private java.lang.Integer id;
	/**userCollectionId*/
	@Excel(name="userCollectionId",width=15)
	private java.lang.Integer userCollectionId;
	/**sysid*/
	@Excel(name="sysid",width=15)
private java.lang.Integer sysid;
//	/**infoId*/
//	@Excel(name="infoId",width=15)
//	private java.lang.Integer infoId;
	/**appUserId*/
	@Excel(name="appUserId",width=15)
	private java.lang.Integer appUserId;
	/**createDate*/
	@Excel(name="createDate",width=15,format = "yyyy-MM-dd")
	private java.util.Date createDate;
	/**currentState*/
	@Excel(name="currentState",width=15)
	private java.lang.String currentState;
	/**cancelDate*/
	@Excel(name="cancelDate",width=15,format = "yyyy-MM-dd")
	private java.util.Date cancelDate;
	
	private AppInformationEntity appInfomation;
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  userCollectionId
	 */

	@Column(name ="USER_COLLECTION_ID",nullable=false,length=10,insertable = false, updatable = false)
	public java.lang.Integer getUserCollectionId(){
		return this.userCollectionId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  userCollectionId
	 */
	public void setUserCollectionId(java.lang.Integer userCollectionId){
		this.userCollectionId = userCollectionId;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  sysid
	 */

	@Column(name ="SYSID",nullable=true,length=10)
	public java.lang.Integer getSysid(){
		return this.sysid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  sysid
	 */
	public void setSysid(java.lang.Integer sysid){
		this.sysid = sysid;
	}
//	/**
//	 *方法: 取得java.lang.Integer
//	 *@return: java.lang.Integer  infoId
//	 */
//
//	@Column(name ="INFO_ID",nullable=false,length=24)
//	public java.lang.Integer getInfoId(){
//		return this.infoId;
//	}
//
//	/**
//	 *方法: 设置java.lang.Integer
//	 *@param: java.lang.Integer  infoId
//	 */
//	public void setInfoId(java.lang.Integer infoId){
//		this.infoId = infoId;
//	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  appUserId
	 */

	@Column(name ="APP_USER_ID",nullable=false,length=24)
	public java.lang.Integer getAppUserId(){
		return this.appUserId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  appUserId
	 */
	public void setAppUserId(java.lang.Integer appUserId){
		this.appUserId = appUserId;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  createDate
	 */

	@Column(name ="CREATE_DATE",nullable=false)
	public java.util.Date getCreateDate(){
		return this.createDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  createDate
	 */
	public void setCreateDate(java.util.Date createDate){
		this.createDate = createDate;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  currentState
	 */

	@Column(name ="CURRENT_STATE",nullable=true,length=10)
	public java.lang.String getCurrentState(){
		return this.currentState;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  currentState
	 */
	public void setCurrentState(java.lang.String currentState){
		this.currentState = currentState;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  cancelDate
	 */

	@Column(name ="CANCEL_DATE",nullable=true)
	public java.util.Date getCancelDate(){
		return this.cancelDate;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  cancelDate
	 */
	public void setCancelDate(java.util.Date cancelDate){
		this.cancelDate = cancelDate;
	}
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="ID_SEQ")
@Column(name ="USER_COLLECTION_ID",nullable=false,length=19)
	public java.lang.Integer getId() {
		return id;
	}

	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	 @ManyToOne(fetch = FetchType.EAGER)

	 @JoinColumn(name = "INFO_ID")
	public AppInformationEntity getAppInfomation() {
		return appInfomation;
	}

	public void setAppInfomation(AppInformationEntity appInfomation) {
		this.appInfomation = appInfomation;
	}
}
